package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_plan")
public class Plan implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "plan_id", type = IdType.AUTO)
    private Integer planId;


    @TableField(value = "plan_name")
    @NotBlank(message = "名称不能为空")
    private String planName;

    @TableField(value = "plan_code")
    @NotBlank(message = "编码不能为空")
    private String planCode;

    @TableField(value = "one_plan")
    @NotBlank(message = "制造间不能为空")
    private String onePlan;

    @TableField(value = "plan_number")
    @NotNull(message = "人数不能为空")
    private Integer planNumber;

    @TableField(value = "out_by_time")
    private Date outByTime;

    @TableField(value = "update_time")
    private Date updateTime;
}